package com.cy.pj.sys.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cy.pj.common.vo.SysRoleMenuVo;
import com.cy.pj.sys.entity.SysRole;

@Mapper
public interface SysRoleDao {
		int getRowCount(@Param("name") String name);
		
		List<SysRole> findPageObjects(
			      @Param("name")String  name,
			      @Param("startIndex")Integer startIndex,
			      @Param("pageSize")Integer pageSize);
		/**
		 * 基于角色id删除角色菜单信息
		 * @param id
		 * @return
		 */
		int deleteObject(Integer id);
		int insertObject(SysRole entity);
		
		SysRoleMenuVo findObjectById(Integer id);
		int updateObject(SysRole entity);
}
